LassoScript Utility
Basics Browse Detail

[Thread_Pipe->Get]

Tag Link [Thread_Pipe->Get] Category Threads
Type Member Source Available Yes
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type Any Security Tag
Implementation LDML Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

Fetches data from a pipe. Accepts an optional timeout value in milliseconds. Returns null if the timeout value is reached before any data is put into the pipe. If there is data already waiting in the pipe when this tag is called then the first item from the pipe will be returned immediately.

Data can be sent into a pipe using the [Thread_Pipe->Set] tag. That value will remain in the pipe until another thread calls [Thread_Pipe->Get]. If a thread calls [Thread_Pipe->Get] and there is no data in the pipe then the thread can wait until an optional timeout value is reached.

Syntax

[Global: 'myPipe' = (Thread_Pipe)]

[Variable: 'Result' = $myPipe->(Get: 1000)]

[If: $Result != Null]
...
[/If]

[$myPipe->(Set: 'Value')]

Parameters

Optional Parameters
Timeout The length of time the tag should wait for a value to be added to the pipe in milliseconds. Defaults to waiting forever.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.